package com.beiding.dao.impl;

import com.beiding.dao.ResourceOperations;
import com.beiding.pojo.Evaluation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.stereotype.Repository;

@Repository
public class EvaluationDaoImpl implements ResourceOperations<Evaluation> {

    private MongoOperations mongoOperations;

    @Autowired
    public void setMongoOperations(MongoOperations mongoOperations) {
        this.mongoOperations = mongoOperations;
    }

    @Override
    public Class<Evaluation> type() {
        return Evaluation.class;
    }

    @Override
    public MongoOperations mongoOperations() {
        return mongoOperations;
    }
}
